﻿<UserControl x:Class="Cartoons.LibraryCard"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400" MaxWidth="400">
    
    <Grid x:Name="LayoutRoot" d:DataContext="{d:DesignData /SampleData/BookSampleData.xaml}">
    	<Grid.Effect>
    		<DropShadowEffect Direction="209" ShadowDepth="16" BlurRadius="18" Opacity="0.7"/>
    	</Grid.Effect>
    	<Grid.Background>
    		<ImageBrush Stretch="Fill" ImageSource="/Cartoons;component/paper_texture_by_akinna_stock.jpg" />
    	</Grid.Background>
    	<Grid.RowDefinitions>
    		<RowDefinition Height="Auto" MinHeight="53"/>
    		<RowDefinition Height="Auto" MinHeight="99"/>
    		<RowDefinition Height="Auto" MinHeight="74"/>
    		<RowDefinition Height="71"/>
    	</Grid.RowDefinitions>
    	<Grid.ColumnDefinitions>
    		<ColumnDefinition Width="0.762*"/>
    		<ColumnDefinition Width="0.238*"/>
    	</Grid.ColumnDefinitions>
    	<Ellipse x:Name="Ellipse" Width="35" StrokeThickness="2" Margin="0,0,0,10" Grid.ColumnSpan="2" StrokeLineJoin="Round" Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Bottom" Height="35">
			<Ellipse.Stroke>
				<LinearGradientBrush StartPoint="0.522625,1.00845" EndPoint="1.53119,1.00845">
					<LinearGradientBrush.RelativeTransform>
						<TransformGroup>
							<SkewTransform CenterX="0.522625" CenterY="1.00845" AngleX="0.234492" AngleY="0"/>
							<RotateTransform CenterX="0.522625" CenterY="1.00845" Angle="269.139"/>
						</TransformGroup>
					</LinearGradientBrush.RelativeTransform>
					<LinearGradientBrush.GradientStops>
						<GradientStop Color="#FF000000" Offset="0"/>
						<GradientStop Color="#FFBAB8B8" Offset="1"/>
					</LinearGradientBrush.GradientStops>
				</LinearGradientBrush>
			</Ellipse.Stroke>
		</Ellipse>
    	<TextBlock Text="{Binding AuthorsBibliographyString}" Margin="8,8,8,0" TextWrapping="Wrap" FontWeight="Bold" FontFamily="Times New Roman" FontSize="16" Grid.ColumnSpan="2"/>
    	<TextBlock Text="{Binding FullBibliographyDescriptionString}" Margin="8,8,8,0" Grid.Row="1" TextWrapping="Wrap" FontFamily="Times New Roman" FontSize="16" Grid.ColumnSpan="2"/>
    	<TextBlock Text="{Binding Annotation}" Margin="8,25,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Grid.Row="2" Grid.ColumnSpan="2" FontSize="13.333" FontFamily="Times New Roman" TextWrapping="Wrap" Width="381" Height="49"/>
    	<StackPanel Grid.Column="1" Margin="8,8,8,-10" Orientation="Vertical" Grid.Row="3">
    		<TextBlock Text="{Binding ISBN}" HorizontalAlignment="Left" Width="76"/>
    		<TextBlock Text="{Binding ISSN}" HorizontalAlignment="Left" VerticalAlignment="Top" Width="76" Margin="0,7,0,0"/>
    	</StackPanel>
    </Grid>
</UserControl>
